import request from '@/utils/request'

// 查询考试场次列表
export function listExamSession(query) {
  return request({
    url: '/system/examSession/list',
    method: 'get',
    params: query
  })
}

// 查询考试场次所有列表
export function listAllExamSession(query) {
  return request({
    url: '/system/examSession/listAll',
    method: 'get',
    params: query
  })
}

// 查询考试场次详细
export function getExamSession(sessionId) {
  return request({
    url: '/system/examSession/getInfo/' + sessionId,
    method: 'get'
  })
}

// 新增考试场次
export function addExamSession(data) {
  return request({
    url: '/system/examSession/add',
    method: 'post',
    data: data
  })
}

// 修改考试场次
export function updateExamSession(data) {
  return request({
    url: '/system/examSession/edit',
    method: 'post',
    data: data
  })
}

// 删除考试场次
export function delExamSession(sessionId) {
  return request({
    url: '/system/examSession/remove/' + sessionId,
    method: 'get'
  })
}
